package so.shanku.essential.utils;


import android.os.Environment;

import java.io.File;

/**
 * Created by Jaelyn on 2015/8/27 0027.
 */
public class Constant {

    /**
     * 在sdcard建立项目应用的路径
     */
    public final static String productPath = Environment
            .getExternalStorageDirectory().getPath()
            + File.separator
            + "Essential" + File.separator;
    /**
     * chache  path
     */
    public final static String productChachePath = productPath + "tmp" + File.separator;


    public static final int COLLECT_IV_CLICK = 1;
    public static final int SHARE_IV_CLICK = 2;


    /**
     * 日志内容
     */
    public class BlogItemCompontType {
        /**
         * 转发
         */
        public static final int TRANSMIT = 1;
        public static final int COMMENT = 2;
        public static final int SCAN_DETAIL = 3;
        public static final int SCAN_BIG_IMAGE = 4;
        public static final int RECOMMAND_OPTION = 5;
        public static final int ATTENTIONED_OPTION = 6;
        public static final int ATTENTION = 7;
        public static final int USER_PHOTO = 8;
    }


    /**
     * 支付方式对应的id
     */
    /**
     * 支付宝
     */
    public static final int ALIPAY_PAYID = 1;
    /**
     * 微信支付
     */
    public static final int WEICHAT_PAYID = 2;
    /**
     * 银联支付
     */
    public static final int UNION_PAYID = 3;
    /**
     * 账户资金
     */
    public static final int CASH_PAYID = 4;

    /**
     * 购物车条目的点击事件
     */
    public enum ShopCartItemCompontType {
        /**
         * 选择品牌
         */
        SELECT_GOODS_BRAND,
        /**
         * 点击店铺名称 进入店铺页
         */
        CLICK_BRAND_NAME,
        /**
         * 点选具体的商品
         */
        SELECT_GOODS_ITEM,
        /**
         * 点击商品条目
         */
        CLICK_GOODS_ITEM,
        /**
         * 添加数量
         */
        ADD_NUM,
        /**
         * 减少数量
         */
        SUB_NUM,
        /**
         * 编辑数量
         */
        NUM_EDIT
    }

    /**
     * adapter点击事件的类型
     */
    public enum FindItemCompontType {
        MORE_CLICK,    //查看详情
        /**
         * 推荐商品的点击
         */
        RECOMMANDOODS
    }

    /**
     * 订单列表或订单详情页 操作订单
     */
    public enum UserOrderItemType {
        SEELogistics,//查看物流
        ORDER_CONFIRM,//确认收货
        CANCEL_ORDER,    //取消订单

        FUND_RETURN,   // 申请退款
        REFUND_DETAIL,//退款详情

        GOODS_RETURN,  //申请退货
        DO_GOODS_RETURN,//填写退货信息
        GOODS_RETURN_DETAIL,//退货详情
        GOODS_RETURN_PROGRESS,//退货进度

        SEE_ORDER_DETAIL,  //查看订单详情
        GOTO_PAY,//去支付

        SEE_PRODUCT,//查看商品详情
        SEE_BRAND//查看品牌

    }

    /**
     * 启动activity时bundle数据使用
     */
    public static final String BUNDLE_EXTRA = "bundle_extra";

    /**
     * 商品的id
     */
    public static final String ID = "id";

    /**
     * 商品名字
     */
    public static final String NAME = "goods_name";

    /**
     * 店铺id
     */
    public static final String VENDOR_ID = "vendor_id";
    /**
     * 店铺名字
     */
    public static final String VENDOR_NAME = "vendor_name";

    /**
     * 查看大图 传递位置
     */
    public static final String IMAGE_POSITION = "image_position";

    /**
     * 查看大图时传递图片信息
     */
    public static final String IMAGE_JSON_STR = "image_json_str";

    /**
     * 选择尺码颜色
     */
    public static final String COLOR_JSON_STR = "color_json_str";

    /**
     * 商品价格
     */
    public static final String GOODS_PRICE = "goods_price";

    /**
     *
     */
    public static final int SELECT_COLOR_SIZE = 1;

    /**
     * 微信支付结果通知
     */
    public static final String ACT_WEIXINPAYCODE = "payresult";

    /**
     * 支付未登录
     */
    public static final String ACT_WEIXINLAUNCHER = "launcher";

    /**
     * 支付结束通知
     */
    public static final String ACT_PAY_OVER = "pay_over";

    /**
     * 购物车数量改变通知；
     */
    public static final String ACAT_SHOPCARTNUMCHANGE = "shopCartNumChange";


}
